Skip to content

fix(ui): restore inline GitHub SVG logo in author signature#23

Merged
oahsiao merged 1 commit into
mainfrom
fix/restore-github-svg-icon
Jun 17, 2026
Merged

fix(ui): restore inline GitHub SVG logo in author signature#23
oahsiao merged 1 commit into
mainfrom
fix/restore-github-svg-icon

Conversation

@oahsiao

@oahsiao oahsiao commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Restores the inline GitHub SVG logo in the "Powered by OA Hsiao" author signature on the tab bar. The icon had been swapped to the literal text GH, which looked cramped/ugly.

Why it looked broken

.gh-icon in style.css is styled for an SVG — fixed 14px box, fill: var(--text-soft), and a hover rotate(360deg). When the markup became <span>GH</span>, fill had no effect and the text was squeezed into a 14px box → ugly.

Fix

Revert the markup back to the original inline GitHub SVG (byte-for-byte identical to the pre-swap version). No CSS change needed — the existing .gh-icon rules already target the SVG (theme color + hover spin restored).

Startup time

No measurable cost. The inline SVG is ~2.5 KB parsed once with the DOM (sub-millisecond) — not an external file, web font, or extra I/O. The original swap was an incidental, misattributed change in the "startup responsiveness" commit; the real wins there came from deferring scripts, not removing the SVG.

Files

  • src/renderer/index.html — restore inline <svg class="gh-icon"> (1 line)

Testing

  • Reload the window → signature shows the GitHub logo again.
  • Hover → icon spins 360°, name shimmer; theme color follows --accent.

The 'Powered by OA Hsiao' credit icon was swapped from the inline GitHub SVG to the literal text 'GH', which rendered cramped/ugly because .gh-icon is styled for an SVG (fixed 14px box + fill + hover rotate).

Restore the original inline SVG markup so it matches the existing .gh-icon CSS again. No CSS change needed. Inline SVG (~2.5KB parsed once with the DOM) adds no measurable startup time, so this reverts the cosmetic regression at zero cost.
@oahsiao oahsiao merged commit c4ec962 into main Jun 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant